home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / ImageCompression.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.5 KB  |  115 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ImageCompression.r
  3.  
  4.      Contains:    QuickTime Image Compression Interfaces.
  5.  
  6.      Version:    Technology:    QuickTime 2.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __IMAGECOMPRESSION_R__
  20. #define __IMAGECOMPRESSION_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26.  
  27. #ifndef __COMPONENTS_R__
  28. #include "Components.r"    /* 'thng' template is now in Components.r
  29. #endif
  30.  
  31. #define codecInfoDoes1                     0x00000001
  32. #define codecInfoDoes2                     0x00000002
  33. #define codecInfoDoes4                     0x00000004
  34. #define codecInfoDoes8                     0x00000008
  35. #define codecInfoDoes16                 0x00000010
  36. #define codecInfoDoes32                 0x00000020
  37. #define codecInfoDoesDither             0x00000040
  38. #define codecInfoDoesStretch             0x00000080
  39. #define codecInfoDoesShrink             0x00000100
  40. #define codecInfoDoesMask                 0x00000200
  41. #define codecInfoDoesTemporal             0x00000400
  42. #define codecInfoDoesDouble             0x00000800
  43. #define codecInfoDoesQuad                 0x00001000
  44. #define codecInfoDoesHalf                 0x00002000
  45. #define codecInfoDoesQuarter             0x00004000
  46. #define codecInfoDoesRotate             0x00008000
  47. #define codecInfoDoesHorizFlip             0x00010000
  48. #define codecInfoDoesVertFlip             0x00020000
  49. #define codecInfoDoesSkew                 0x00040000
  50. #define codecInfoDoesBlend                 0x00080000
  51. #define codecInfoDoesWarp                 0x00100000
  52. #define codecInfoDoesRecompress         0x00200000
  53. #define codecInfoDoesSpool                 0x00400000
  54. #define codecInfoDoesRateConstrain         0x00800000
  55.  
  56. #define codecInfoDepth1                 0x00000001
  57. #define codecInfoDepth2                 0x00000002
  58. #define codecInfoDepth4                 0x00000004
  59. #define codecInfoDepth8                 0x00000008
  60. #define codecInfoDepth16                 0x00000010
  61. #define codecInfoDepth32                 0x00000020
  62. #define codecInfoDepth24                 0x00000040
  63. #define codecInfoDepth33                 0x00000080
  64. #define codecInfoDepth34                 0x00000100
  65. #define codecInfoDepth36                 0x00000200
  66. #define codecInfoDepth40                 0x00000400
  67. #define codecInfoStoresClut             0x00000800
  68. #define codecInfoDoesLossless             0x00001000
  69. #define codecInfoSequenceSensitive         0x00002000
  70.  
  71. #define codecFlagUseImageBuffer         0x00000001
  72. #define codecFlagUseScreenBuffer         0x00000002
  73. #define codecFlagUpdatePrevious         0x00000004
  74. #define codecFlagNoScreenUpdate         0x00000008
  75. #define codecFlagWasCompressed             0x00000010
  76. #define codecFlagDontOffscreen             0x00000020
  77. #define codecFlagUpdatePreviousComp     0x00000040
  78. #define codecFlagForceKeyFrame             0x00000080
  79. #define codecFlagOnlyScreenUpdate         0x00000100
  80. #define codecFlagLiveGrab                 0x00000200
  81. #define codecFlagDontUseNewImageBuffer     0x00000400
  82. #define codecFlagInterlaceUpdate         0x00000800
  83. #define codecFlagCatchUpDiff             0x00001000
  84. #define codecFlagImageBufferNotSourceImage  0x00002000
  85. #define codecFlagUsedNewImageBuffer     0x00004000
  86. #define codecFlagUsedImageBuffer         0x00008000
  87.  
  88.  
  89. type 'cdci' {
  90.     pstring[31];
  91.     hex integer    version;
  92.     hex integer    revlevel;
  93.     hex longint    vendor;
  94.     hex longint    decompressFlags;
  95.     hex longint    compressFlags;
  96.     hex longint    formatFlags;
  97.     byte        compressionAccuracy;
  98.     byte        decompressionAccuracy;
  99.     integer        compressionSpeed;
  100.     integer        decompressionSpeed;
  101.     byte        compressionLevel;
  102.     byte        resvd;
  103.     integer        minimumHeight;
  104.     integer        minimumWidth;
  105.     integer        decompressPipelineLatency;
  106.     integer        compressPipelineLatency;
  107.     longint        privateData;
  108. };
  109.  
  110. #define    compressorComponentType            'imco'
  111. #define    decompressorComponentType        'imdc'
  112.  
  113. #endif /* __IMAGECOMPRESSION_R__ */
  114.  
  115.